vulkan: Get rid of color in push constants
authorBenjamin Otte <otte@redhat.com>
Sun, 18 Dec 2016 06:08:37 +0000 (07:08 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 20 Dec 2016 17:01:11 +0000 (18:01 +0100)
The color comes in instance data now, no need to abuse push constants
for it.

gsk/resources/vulkan/color.frag.glsl
gsk/resources/vulkan/color.frag.spv

index cbac7ed96137421451078a923cfdb98f8fbc66c4..68d77d72f9b2be69b20f54eca099b16ec2290f50 100644 (file)
@@ -2,11 +2,6 @@
 
 layout(location = 0) in vec4 inColor;
 
-layout(push_constant) uniform PushConstants {
-    mat4 mvp;
-    vec4 color;
-} push;
-
 layout(location = 0) out vec4 color;
 
 void main()
index 2865771377a09b53eb2b06abe5bfee8ad8e3d5af..98c661da196d9fb6819892653850c52c56461dc9 100644 (file)
Binary files a/gsk/resources/vulkan/color.frag.spv and b/gsk/resources/vulkan/color.frag.spv differ